
<div class="container-fluid">
    <div class="wrapper">
        <div class="panel" id="nav">
            <div class="panel-heading"><h3 class="panel-title">出口退税物流统计表</h3></div>
            <div class="panel-body">
                <form action="__URL__/exportRebateStatistics" method="get" id="form">
                    <div class="col-sm-12 col-md-4 add-space">
                        <div class="input-group input-group-md">
                            <span class="input-group-addon">物流计划单编码</span>
                            <textarea name="tranId" class="form-control" cols="5" rows="3" placeholder="物流计划单编码,多个请用逗号(,)隔开"></textarea>
                        </div>
                    </div>
                    <div class="col-sm-12 col-md-3  add-space">
                        <div class="input-group input-group-md">
                            <span class="input-group-addon">物流状态</span>
                            <select class="chosen-select form-control" tabindex="-1" name="status"
                                    data-name-group="common">
                                <option value="" class="empty-opt">-- 请选择 --</option>
                                <option value="40" class="empty-opt">待物流计划</option>
                                <option value="50" class="empty-opt">待发货</option>
                                <option value="60" class="empty-opt">已发货</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-12 col-md-6  add-space">
                        <div class="input-group input-group-md">
                            <span class="input-group-addon">发货时间</span>
                            <input class="form-control form-datetime" type="text" name="time_from" value="{$_GET['claim_arrive_time_from']}" style="cursor:pointer;" readonly>
                            <span class="input-group-addon">至</span>
                            <input class="form-control form-datetime" type="text" name="time_to" value="{$_GET['claim_arrive_time_to']}" style="cursor:pointer;" readonly>

                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="col-sm-12 col-md-8  add-space">
                        <input class="btn btn-primary" type="submit" value="下载FBA出口退税物流统计表">
                        <input class="btn btn-success" type="button" value="下载无FBA采购单号二次追踪表格" id="download">
                        <input class="btn btn-success" type="reset" value="重置" >
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>
</div>
<script type="text/javascript" src="__PUBLIC__/javascripts/admin/layer/layer.js"></script>
<script>
    $('.form-date_1').datetimepicker({
        lang:'ch',
        timepicker:false,
        format:'Y-m-d',
        formatDate:'Y-m-d',
        onChangeDateTime:function(dp,$input){
            //alert(dp);
            date_needs();
        },
        onSelectDate:function()
        {
            date_needs();
        }
    });
    $('#download').click(function () {
        var data = $('#form').serialize();
        if(data){
            window.location.href ='__URL__/exportRebateStatistics?shuDown=ok&'+data;
        }
    })
</script>